﻿using System;
using RootMotion.FinalIK;
using UnityEngine;

namespace RootMotion.Demos
{
	// Token: 0x020000C4 RID: 196
	public class BendGoal : MonoBehaviour
	{
		// Token: 0x060005F2 RID: 1522 RVA: 0x00005D01 File Offset: 0x00003F01
		public void Start()
		{
			Debug.Log("BendGoal is deprecated, you can now a bend goal from the custom inspector of the LimbIK component.");
		}

		// Token: 0x060005F3 RID: 1523 RVA: 0x00005D0D File Offset: 0x00003F0D
		public void LateUpdate()
		{
			if (this.limbIK == null)
			{
				return;
			}
			this.limbIK.solver.SetBendGoalPosition(base.transform.position, this.weight);
		}

		// Token: 0x04000506 RID: 1286
		public LimbIK limbIK;

		// Token: 0x04000507 RID: 1287
		[Range(0f, 1f)]
		public float weight = 1f;
	}
}
